package com.golf.server;

import java.util.ArrayList;
import java.util.List;

import com.golf.core.player.Player;
import com.golf.player.BadPlayer;
import com.golf.server.game.Game;
import com.golf.server.game.GameRules;

public class GameServer
{
    
    public void startGame()
    {
        
    }
    
   /*
    
    The game server is a host for one or more games.
    
    tosdo - game creation
    interaction with remote clients.
    
    */
    
      


    
    public static void main(String[] args)
    {
        List<Player> l = new ArrayList<Player>();
        l.add(new BadPlayer("bob"));
        l.add(new BadPlayer("fred"));
        l.add(new BadPlayer("jim"));
        l.add(new BadPlayer("alice"));
        
        GameRules gp = new GameRules(5,3);
        
        Game g = new Game(l, gp);

        Thread t = new Thread(g);
        t.start();
    }
    
    
}
